package behavior.visitor.impl;

import behavior.visitor.Visitor;

public class Pharmacy extends Visitor {

	@Override
	public void visitor(WesternMedicine a) {
		System.out.println("药房工作者：" + name + "拿药 ：" + a.getName());
	}

	@Override
	public void visitor(ChineseMedicine b) {
		System.out.println("药房工作者：" + name + "拿药 ：" + b.getName());
	}

}
